/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Communication;

import java.util.EventObject;
import java.util.regex.Matcher;

/**
 *
 * @author aaron
 */
public class LineGrepperPatternMatchEvent extends EventObject {
    protected Matcher match;

    /**Create a new event
     * @param source the LineGrabber that fired this event
     * @param matches the matching Matchers from source
     */
    public LineGrepperPatternMatchEvent(LineGrepper source, Matcher match) {
        super(source);
        this.match = match;
    }

    /**Get the Matcher objects that matched each pattern.
     * @return the Matchers
     */
    public Matcher getMatch() {
        return this.match;
    }
}
